home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / HYP / A-B / ButtonStax.cpt / Region Buttons / card_4982.txt < prev    next >
Text File  |  1989-02-26  |  825b  |  22 lines

  1. -- card: 4982 from stack: in
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 2722
  5. -- name: 
  6.  
  7.  
  8. -- part contents for background part 14
  9. ----- text -----
  10. In Depth - TestHit
  11.  
  12. -- part contents for background part 15
  13. ----- text -----
  14. 7
  15.  
  16. -- part contents for background part 13
  17. ----- text -----
  18. Syntax: ButtonRgn "<handle>", "TestHit", mouseH(), mouseV()
  19.  
  20. Call TestHit whenever you detect a MouseUp on the card. TestHit checks the mouse location against all buttons and returns the number of the button hit (See: Creating Buttons). If none of the buttons were hit, then TestHit returns zero. The button number (or zero) is returned in "the result".
  21.  
  22. TestHit can optionally be followed by "TRUE" or "FALSE" to indicate whether hilighting should occur when a button is hit. If it is not specified, hilighting defaults to "FALSE".